package cn.tellsea.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * ribbon 测试
 *
 * @author Tellsea
 * @date 2021/12/22
 */
@RestController
public class RibbonController {

    @Value("${server.port}")
    private int port;

    @GetMapping("/ribbon/message/{message}")
    public String message(@PathVariable("message") String message) {
        return "[端口：]" + port + "，消息：" + message;
    }
}
